import {
    base
} from 'nc-lightapp-front';


const {
    NCButton
} = base;

export default (props) => {

    let { step } = props;
    let buttonsList = [];

    if (step === 1) {
        buttonsList.push(
            <NCButton
                colors="primary"
                onClick={() => {
                    props.goToStep(2);
                }}
            >
                {props.language['hi6007-000000']}{/* 国际化处理： 下一步*/}
            </NCButton>
        );
    }
    else if (step === 2) {
        buttonsList.push(
            <NCButton
                colors="normal"
                onClick={() => {
                    props.goToStep(1);
                }}
            >
                {props.language['hi6007-000001']}{/* 国际化处理： 上一步*/}
            </NCButton>
        );
        buttonsList.push(
            <NCButton
                colors="primary"
                onClick={props.toBeSure}
            >
                {props.language['hi6007-000002']}{/* 国际化处理： 确定*/}
            </NCButton>
        );
    }

    buttonsList.push(
        <NCButton
            colors="normal"
            onClick={props.closeModal}
        >
            {props.language['hi6007-000003']}{/* 国际化处理： 取消*/}
        </NCButton>
    );

    return buttonsList;

}
